package com.example.zwlyz;

import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;

import com.example.zwlyz.ui.shop.ShopFragment;

public class OrderListActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order_list); // 确保加载正确的布局文件

        Fragment fragment = new ShopFragment();
        Bundle args = new Bundle();
        args.putBoolean("isOrderList", true); // 设置参数，表示是订单列表
        fragment.setArguments(args);

        getSupportFragmentManager().beginTransaction()
                .replace(R.id.fragment_container, fragment)
                .commit();
    }
}